package com.etc.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@RestController
public class HelloController {

    @GetMapping("hello.action")
    public String hello() {
        return "hello spring boot";
    }

    @Autowired
    HelloService service;

    @GetMapping("hello1.action")
    public List<HashMap> hello1() {
        return service.findAllDept();
    }
}
